﻿namespace Busconeitor.Web.Models
{
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    public class QueryModel
    {
        [Required]
        public string Query { get; set; }

        public int TotalResults { get; set; }

        public string SearchTime { get; set; }

        public ICollection<ResultModel> Results { get; set; }
    }

    public class ResultModel
    {
        public string DocumentName { get; set; }

        public string Relevance { get; set; }

        public string PagesCount { get; set; }
        
        public string Size { get; set; }
        
        public string Link { get; set; }
        
        public string Fragment { get; set; }
    }
}